/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package org.sdemo;

//静态导入
import static java.lang.Math.random;

/**
 * <p>Project: jse2302 - Demo
 * <p>Powered by webrx On 2023-06-19 11:16:38
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    //静态成员变量（属性）（类变量）
    static int i = 3;

    public static void main(String[] args) {
        System.out.println(i);

        System.out.println(random());
        System.out.println(random());


        show();
        //System.out.println(show());
    }


    public static void show(){
        System.out.println("Hello world程序 show()静态方法");
    }

    static {
        System.out.println("static{1}");
        System.out.println("static{1}");
        System.out.println("static{1}");
        System.out.println("static{1}");
    }


}
